/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PnlEditCreditors.java
 *
 * Created on 19 ม.ค. 2553, 23:43:09
 */

package warehouse;

/**
 *
 * @author Administrator
 */
public class PnlCreateCreditors extends javax.swing.JPanel {

    /** Creates new form PnlEditCreditors */
    public PnlCreateCreditors() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlHeadEditCre = new javax.swing.JPanel();
        lblHeadEditCre = new javax.swing.JLabel();
        btnCreEditSave = new javax.swing.JButton();
        btnCreEditCancel = new javax.swing.JButton();
        btnCreEditDel = new javax.swing.JButton();
        btnCrePrint = new javax.swing.JButton();
        pnlEditCre = new javax.swing.JPanel();
        lblCreCode = new javax.swing.JLabel();
        txtCreCode = new javax.swing.JTextField();
        lblReCode = new javax.swing.JLabel();
        txtReCode = new javax.swing.JTextField();
        jScrollPane1 = new javax.swing.JScrollPane();
        tblListCre = new javax.swing.JTable();
        lblCreTotal = new javax.swing.JLabel();
        lblCreVat = new javax.swing.JLabel();
        lblCreNet = new javax.swing.JLabel();
        lblCreUnit = new javax.swing.JLabel();
        lblCreTotal1 = new javax.swing.JLabel();
        txtCreTotal = new javax.swing.JTextField();
        txtCreVat = new javax.swing.JTextField();
        txtCreNet = new javax.swing.JTextField();
        lblCreUnit1 = new javax.swing.JLabel();
        lblCreUnit2 = new javax.swing.JLabel();

        setMaximumSize(new java.awt.Dimension(700, 500));
        setMinimumSize(new java.awt.Dimension(700, 500));
        setLayout(new java.awt.BorderLayout());

        pnlHeadEditCre.setBackground(new java.awt.Color(204, 255, 204));
        pnlHeadEditCre.setMinimumSize(new java.awt.Dimension(700, 80));
        pnlHeadEditCre.setPreferredSize(new java.awt.Dimension(700, 80));

        lblHeadEditCre.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N
        lblHeadEditCre.setText("รายการซื้อเชื่อ");

        btnCreEditSave.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/save_30x30.gif"))); // NOI18N

        btnCreEditCancel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/cancel_30x30.gif"))); // NOI18N

        btnCreEditDel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/del_30x30.gif"))); // NOI18N

        btnCrePrint.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/print_30x30.gif"))); // NOI18N
        btnCrePrint.setMaximumSize(new java.awt.Dimension(40, 40));
        btnCrePrint.setMinimumSize(new java.awt.Dimension(40, 40));
        btnCrePrint.setPreferredSize(new java.awt.Dimension(40, 40));

        javax.swing.GroupLayout pnlHeadEditCreLayout = new javax.swing.GroupLayout(pnlHeadEditCre);
        pnlHeadEditCre.setLayout(pnlHeadEditCreLayout);
        pnlHeadEditCreLayout.setHorizontalGroup(
            pnlHeadEditCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlHeadEditCreLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlHeadEditCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlHeadEditCreLayout.createSequentialGroup()
                        .addComponent(btnCreEditSave, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnCreEditCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnCreEditDel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnCrePrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(lblHeadEditCre))
                .addContainerGap(490, Short.MAX_VALUE))
        );
        pnlHeadEditCreLayout.setVerticalGroup(
            pnlHeadEditCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlHeadEditCreLayout.createSequentialGroup()
                .addGap(11, 11, 11)
                .addComponent(lblHeadEditCre)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(pnlHeadEditCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(btnCreEditCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnCreEditDel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnCrePrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnCreEditSave, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        add(pnlHeadEditCre, java.awt.BorderLayout.PAGE_START);

        lblCreCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblCreCode.setText("รหัสซื้อเชื่อ :");

        txtCreCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        lblReCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblReCode.setText("รหัสรับสินค้า :");

        txtReCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        tblListCre.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        tblListCre.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null}
            },
            new String [] {
                "รหัสสินค้า", "รายการสินค้า", "ราคา/หน่วย", "หน่วย", "จำนวน"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.Float.class, java.lang.String.class, java.lang.Integer.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane1.setViewportView(tblListCre);

        lblCreTotal.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblCreTotal.setText("ราคารวม :");

        lblCreVat.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblCreVat.setText("ภาษี :");

        lblCreNet.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblCreNet.setText("เงินสุทธิ :");

        lblCreUnit.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblCreUnit.setText("บาท");

        lblCreTotal1.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        txtCreTotal.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        txtCreVat.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        txtCreNet.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        lblCreUnit1.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblCreUnit1.setText("บาท");

        lblCreUnit2.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblCreUnit2.setText("บาท");

        javax.swing.GroupLayout pnlEditCreLayout = new javax.swing.GroupLayout(pnlEditCre);
        pnlEditCre.setLayout(pnlEditCreLayout);
        pnlEditCreLayout.setHorizontalGroup(
            pnlEditCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlEditCreLayout.createSequentialGroup()
                .addGroup(pnlEditCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlEditCreLayout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addGroup(pnlEditCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblReCode, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(lblCreCode, javax.swing.GroupLayout.Alignment.TRAILING))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(pnlEditCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txtCreCode, javax.swing.GroupLayout.DEFAULT_SIZE, 144, Short.MAX_VALUE)
                            .addComponent(txtReCode)))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlEditCreLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 686, Short.MAX_VALUE))
                    .addGroup(pnlEditCreLayout.createSequentialGroup()
                        .addGap(470, 470, 470)
                        .addGroup(pnlEditCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblCreVat, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(lblCreTotal, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(lblCreNet, javax.swing.GroupLayout.Alignment.TRAILING))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(pnlEditCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(pnlEditCreLayout.createSequentialGroup()
                                .addComponent(txtCreNet, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(lblCreUnit2))
                            .addGroup(pnlEditCreLayout.createSequentialGroup()
                                .addComponent(txtCreTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(11, 11, 11)
                                .addComponent(lblCreUnit))
                            .addGroup(pnlEditCreLayout.createSequentialGroup()
                                .addComponent(txtCreVat, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 11, Short.MAX_VALUE)
                                .addComponent(lblCreUnit1)))))
                .addContainerGap())
            .addGroup(pnlEditCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlEditCreLayout.createSequentialGroup()
                    .addContainerGap(546, Short.MAX_VALUE)
                    .addComponent(lblCreTotal1, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(40, 40, 40)))
        );
        pnlEditCreLayout.setVerticalGroup(
            pnlEditCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlEditCreLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlEditCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblCreCode)
                    .addComponent(txtCreCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlEditCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblReCode)
                    .addComponent(txtReCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 240, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(pnlEditCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(lblCreTotal, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(pnlEditCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lblCreUnit, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(txtCreTotal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlEditCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblCreVat)
                    .addComponent(txtCreVat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblCreUnit1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlEditCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblCreNet)
                    .addComponent(txtCreNet, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblCreUnit2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(15, Short.MAX_VALUE))
            .addGroup(pnlEditCreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlEditCreLayout.createSequentialGroup()
                    .addContainerGap(340, Short.MAX_VALUE)
                    .addComponent(lblCreTotal1, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(57, 57, 57)))
        );

        add(pnlEditCre, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnCreEditCancel;
    private javax.swing.JButton btnCreEditDel;
    private javax.swing.JButton btnCreEditSave;
    private javax.swing.JButton btnCrePrint;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JLabel lblCreCode;
    private javax.swing.JLabel lblCreNet;
    private javax.swing.JLabel lblCreTotal;
    private javax.swing.JLabel lblCreTotal1;
    private javax.swing.JLabel lblCreUnit;
    private javax.swing.JLabel lblCreUnit1;
    private javax.swing.JLabel lblCreUnit2;
    private javax.swing.JLabel lblCreVat;
    private javax.swing.JLabel lblHeadEditCre;
    private javax.swing.JLabel lblReCode;
    private javax.swing.JPanel pnlEditCre;
    private javax.swing.JPanel pnlHeadEditCre;
    private javax.swing.JTable tblListCre;
    private javax.swing.JTextField txtCreCode;
    private javax.swing.JTextField txtCreNet;
    private javax.swing.JTextField txtCreTotal;
    private javax.swing.JTextField txtCreVat;
    private javax.swing.JTextField txtReCode;
    // End of variables declaration//GEN-END:variables

}
